package work.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.entity.Card;
import work.repository.CardRepository;
import work.service.CardService;

@Service
public class CardServiceImpl implements CardService {

    @Autowired
    private CardRepository cardRepository;

    @Override
    public int updateStatus(Card card) {
        return cardRepository.updateStatus(card);
    }

    @Override
    public int updateStatusByCardId(Card card) {
        return cardRepository.updateStatusByCardId(card);
    }

    @Override
    public String selectStatusByUserId(String userId) {
        return cardRepository.selectStatusByUserId(userId);
    }

    @Override
    public String selectStatusByCardId(String cardId) {
        return cardRepository.selectStatusByCardId(cardId);
    }
}
